import Http from "../utils/Http";
class Category{
  static getCategoryList(){
    return Http.request({url:"/v1/category",method:"GET"})
  }
  static async getCategoryListWithAll(){
    const categoryList = await Category.getCategoryList()
    categoryList.unshift({"id":0,"name":"全部"})
    // console.log(categoryList);
    return categoryList
  }
}
export default Category